package com.chao.cloudconsumerpayment8002.service;

import com.chao.entities.CommonResult;
import com.chao.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @author Administrator
 * @date 2021-06-09 11:13
 */
@Component
public class HystrixPaymentServiceImpl implements PaymentService {
    @Override
    public CommonResult creatPayment(Payment payment) {
        return new CommonResult(500,"服务正忙，请稍后再试");
    }

    @Override
    public CommonResult getPayment(Long id) {
        return new CommonResult(500,"服务正忙，请稍后再试");
    }
}
